package com.soft.mainsite.module.wx.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author: hjm
 * @Date: 2020/12/1 19:42
 * Stay hungry,stay foolish!
 */
@TableName("mainsite_wx_user")
@Data
public class WxUser implements Serializable{

    private static final long serialVersionUID = -2414443061696200360L;

    @ApiModelProperty("自增id")
    private Integer id;

    @ApiModelProperty("微信openId")
    private String openId;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("语言")
    private String language;

    @ApiModelProperty("国家")
    private String city;

    @ApiModelProperty("省份")
    private String province;

    @ApiModelProperty("城市")
    private String country;

    @ApiModelProperty("微信头像")
    private String avatarUrl;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("微信用户状态, 1 正常, -1 已删除")
    private Integer userState;

    @TableField(exist = false)
    @ApiModelProperty("会话密钥, 是对用户数据进行 加密签名 的密钥")
    private String sessionKey;

    @TableField(exist = false)
    @ApiModelProperty("部门id")
    private String sid;

    @TableField(exist = false)
    @ApiModelProperty("用户姓名")
    private String trueName;
}
